package com.dcbeida.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class ZyDrugDetail {

    @SerializedName("totalcount")
    private int totalcount;
    @SerializedName("type")
    private int type;
    @SerializedName("coupon")
    private CouponDTO coupon;
    @SerializedName("records")
    private int records;
    @SerializedName("list")
    private List<ListDTO> list;

    private List<DrguItemDetailWithHeader> orignaldruglist;

    public int getTotalcount() {
        return totalcount;
    }

    public List<DrguItemDetailWithHeader> getOrignaldruglist() {
        return orignaldruglist;
    }

    public void setOrignaldruglist(List<DrguItemDetailWithHeader> orignaldruglist) {
        this.orignaldruglist = orignaldruglist;
    }

    public void setTotalcount(int totalcount) {
        this.totalcount = totalcount;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public CouponDTO getCoupon() {
        return coupon;
    }

    public void setCoupon(CouponDTO coupon) {
        this.coupon = coupon;
    }

    public int getRecords() {
        return records;
    }

    public void setRecords(int records) {
        this.records = records;
    }

    public List<ListDTO> getList() {
        return list;
    }

    public void setList(List<ListDTO> list) {
        this.list = list;
    }

    public static class CouponDTO {
        @SerializedName("couponcode")
        private String couponcode;
        @SerializedName("coupontype")
        private String coupontype;
        @SerializedName("shopname")
        private String shopname;
        @SerializedName("usetime")
        private String usetime;
        @SerializedName("usetimes")
        private int usetimes;
        @SerializedName("recipepics")
        private String recipepics;

        public String getCoupontype() {
            return coupontype;
        }

        public void setCoupontype(String coupontype) {
            this.coupontype = coupontype;
        }

        public String getCouponcode() {
            return couponcode;
        }

        public void setCouponcode(String couponcode) {
            this.couponcode = couponcode;
        }

        public String getShopname() {
            return shopname;
        }

        public void setShopname(String shopname) {
            this.shopname = shopname;
        }

        public String getUsetime() {
            return usetime;
        }

        public void setUsetime(String usetime) {
            this.usetime = usetime;
        }

        public int getUsetimes() {
            return usetimes;
        }

        public void setUsetimes(int usetimes) {
            this.usetimes = usetimes;
        }

        public String getRecipepics() {
            return recipepics;
        }

        public void setRecipepics(String recipepics) {
            this.recipepics = recipepics;
        }
    }

    public static class ListDTO {
        @SerializedName("drugname")
        private String drugname;
        @SerializedName("quantity")
        private int quantity;
        @SerializedName("drugList")
        private List<DrugListDTO> drugList;

        public String getDrugname() {
            return drugname;
        }

        public void setDrugname(String drugname) {
            this.drugname = drugname;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }

        public List<DrugListDTO> getDrugList() {
            return drugList;
        }

        public void setDrugList(List<DrugListDTO> drugList) {
            this.drugList = drugList;
        }

        public static class DrugListDTO {
            @SerializedName("batchnumber")
            private String batchnumber;
            @SerializedName("drugid")
            private int drugid;
            @SerializedName("expiredate")
            private String expiredate;
            @SerializedName("drugcode")
            private String drugcode;
            @SerializedName("drugcodelevelno")
            private int drugcodelevelno;
            @SerializedName("parentdrugcode")
            private String parentdrugcode;
            @SerializedName("patientid")
            private int patientid;
            @SerializedName("createtime")
            private String createtime;
            @SerializedName("quantity")
            private int quantity;
            @SerializedName("orderid")
            private String orderid;
            @SerializedName("refundid")
            private String refundid;
            @SerializedName("audittime")
            private String audittime;
            @SerializedName("refundquantity")
            private int refundquantity;
            @SerializedName("replytime")
            private String replytime;
            @SerializedName("auditstatus")
            private String auditstatus;

            private String drugname;
            private int allQuantity;
            private boolean isFirst;

            public boolean isFirst() {
                return isFirst;
            }

            public void setFirst(boolean first) {
                isFirst = first;
            }

            public String getBatchnumber() {
                return batchnumber;
            }

            public void setBatchnumber(String batchnumber) {
                this.batchnumber = batchnumber;
            }

            public int getDrugid() {
                return drugid;
            }

            public void setDrugid(int drugid) {
                this.drugid = drugid;
            }

            public String getExpiredate() {
                return expiredate;
            }

            public void setExpiredate(String expiredate) {
                this.expiredate = expiredate;
            }

            public String getDrugcode() {
                return drugcode;
            }

            public void setDrugcode(String drugcode) {
                this.drugcode = drugcode;
            }

            public int getDrugcodelevelno() {
                return drugcodelevelno;
            }

            public void setDrugcodelevelno(int drugcodelevelno) {
                this.drugcodelevelno = drugcodelevelno;
            }

            public String getParentdrugcode() {
                return parentdrugcode;
            }

            public void setParentdrugcode(String parentdrugcode) {
                this.parentdrugcode = parentdrugcode;
            }

            public int getPatientid() {
                return patientid;
            }

            public void setPatientid(int patientid) {
                this.patientid = patientid;
            }

            public String getCreatetime() {
                return createtime;
            }

            public void setCreatetime(String createtime) {
                this.createtime = createtime;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public String getOrderid() {
                return orderid;
            }

            public void setOrderid(String orderid) {
                this.orderid = orderid;
            }

            public String getRefundid() {
                return refundid;
            }

            public void setRefundid(String refundid) {
                this.refundid = refundid;
            }

            public String getAudittime() {
                return audittime;
            }

            public void setAudittime(String audittime) {
                this.audittime = audittime;
            }

            public String getDrugname() {
                return drugname;
            }

            public void setDrugname(String drugname) {
                this.drugname = drugname;
            }

            public int getAllQuantity() {
                return allQuantity;
            }

            public void setAllQuantity(int allQuantity) {
                this.allQuantity = allQuantity;
            }

            public int getRefundquantity() {
                return refundquantity;
            }

            public void setRefundquantity(int refundquantity) {
                this.refundquantity = refundquantity;
            }

            public String getReplytime() {
                return replytime;
            }

            public void setReplytime(String replytime) {
                this.replytime = replytime;
            }

            public String getAuditstatus() {
                return auditstatus;
            }

            public void setAuditstatus(String auditstatus) {
                this.auditstatus = auditstatus;
            }
        }
    }
}

